package c.j.a.d.a.p;

import android.content.DialogInterface.OnClickListener;
import com.ss.android.socialbase.appdownloader.view.JumpUnknownSourceActivity;

/* compiled from: JumpUnknownSourceActivity */
public class f implements OnClickListener {
    public final /* synthetic */ JumpUnknownSourceActivity a;

    public f(JumpUnknownSourceActivity jumpUnknownSourceActivity) {
        this.a = jumpUnknownSourceActivity;
    }

    /* JADX WARNING: Removed duplicated region for block: B:23:0x006d A:{Catch:{ all -> 0x0041, all -> 0x009a }} */
    /* JADX WARNING: Removed duplicated region for block: B:22:0x0052 A:{Catch:{ all -> 0x0041, all -> 0x009a }} */
    /* JADX WARNING: Removed duplicated region for block: B:34:0x009c  */
    public void onClick(android.content.DialogInterface r11, int r12) {
        /*
        r10 = this;
        r11 = r10.a;
        r12 = r11.c;
        r0 = r11.d;
        r1 = c.j.a.d.a.g.a;
        r1 = android.os.Build.VERSION.SDK_INT;
        r2 = 0;
        r3 = 1;
        r4 = c.j.a.d.b.n.d0.d();	 Catch:{ all -> 0x009a }
        r5 = 26;
        if (r4 == 0) goto L_0x006f;
    L_0x0014:
        if (r1 >= r5) goto L_0x006f;
    L_0x0016:
        r1 = c.j.a.d.a.g.q(r11);	 Catch:{ all -> 0x009a }
        if (r1 != 0) goto L_0x009a;
    L_0x001c:
        r1 = 8388608; // 0x800000 float:1.17549435E-38 double:4.144523E-317;
        r4 = 1073741824; // 0x40000000 float:2.0 double:5.304989477E-315;
        r5 = 268435456; // 0x10000000 float:2.5243549E-29 double:1.32624737E-315;
        r6 = "android.settings.SECURITY_SETTINGS";
        if (r11 != 0) goto L_0x0027;
    L_0x0026:
        goto L_0x004f;
    L_0x0027:
        r7 = new android.content.Intent;	 Catch:{ all -> 0x009a }
        r7.<init>(r6);	 Catch:{ all -> 0x009a }
        r7.addFlags(r5);	 Catch:{ all -> 0x009a }
        r7.addFlags(r4);	 Catch:{ all -> 0x009a }
        r7.addFlags(r1);	 Catch:{ all -> 0x009a }
        r8 = r11.getPackageManager();	 Catch:{ all -> 0x0041 }
        r7 = r7.resolveActivity(r8);	 Catch:{ all -> 0x0041 }
        if (r7 == 0) goto L_0x004f;
    L_0x003f:
        r7 = 1;
        goto L_0x0050;
    L_0x0041:
        r7 = move-exception;
        r8 = c.j.a.d.b.g.a.b();	 Catch:{ all -> 0x009a }
        if (r8 == 0) goto L_0x004f;
    L_0x0048:
        r8 = "AbsDevicePlan";
        r9 = "check is valid failed!";
        android.util.Log.e(r8, r9, r7);	 Catch:{ all -> 0x009a }
    L_0x004f:
        r7 = 0;
    L_0x0050:
        if (r7 == 0) goto L_0x006d;
    L_0x0052:
        r7 = new c.j.a.d.a.e;	 Catch:{ all -> 0x009a }
        r7.m6381init();	 Catch:{ all -> 0x009a }
        c.j.a.d.a.g.c(r11, r12, r0, r7);	 Catch:{ all -> 0x009a }
        r12 = new android.content.Intent;	 Catch:{ all -> 0x009a }
        r12.<init>(r6);	 Catch:{ all -> 0x009a }
        r12.addFlags(r5);	 Catch:{ all -> 0x009a }
        r12.addFlags(r4);	 Catch:{ all -> 0x009a }
        r12.addFlags(r1);	 Catch:{ all -> 0x009a }
        r2 = c.j.a.d.a.g.m(r11, r12);	 Catch:{ all -> 0x009a }
        goto L_0x009a;
    L_0x006d:
        r2 = 1;
        goto L_0x009a;
    L_0x006f:
        if (r1 < r5) goto L_0x009a;
    L_0x0071:
        r1 = r11.getApplicationInfo();	 Catch:{ all -> 0x009a }
        r1 = r1.targetSdkVersion;	 Catch:{ all -> 0x009a }
        if (r1 < r5) goto L_0x009a;
    L_0x0079:
        r1 = c.j.a.d.a.g.r(r11);	 Catch:{ all -> 0x009a }
        if (r1 != 0) goto L_0x009a;
    L_0x007f:
        r1 = new c.j.a.d.a.c.b;	 Catch:{ all -> 0x009a }
        r1.m6375init(r11);	 Catch:{ all -> 0x009a }
        r4 = r1.a();	 Catch:{ all -> 0x009a }
        if (r4 == 0) goto L_0x009a;
    L_0x008a:
        r4 = new c.j.a.d.a.f;	 Catch:{ all -> 0x009a }
        r4.m6382init();	 Catch:{ all -> 0x009a }
        c.j.a.d.a.g.c(r11, r12, r0, r4);	 Catch:{ all -> 0x009a }
        r12 = r1.b();	 Catch:{ all -> 0x009a }
        r2 = c.j.a.d.a.g.m(r11, r12);	 Catch:{ all -> 0x009a }
    L_0x009a:
        if (r2 != 0) goto L_0x00a3;
    L_0x009c:
        r11 = r10.a;
        r12 = r11.c;
        c.j.a.d.a.g.g(r11, r12, r3);
    L_0x00a3:
        r11 = r10.a;
        r11.finish();
        return;
        */
        throw new UnsupportedOperationException("Method not decompiled: c.j.a.d.a.p.f.onClick(android.content.DialogInterface, int):void");
    }
}
